package com.njtoyo.taxi.admin.service.business.customer;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.njtoyo.taxi.admin.rest.presenter.business.CustomerLogoutListPresenter;
import com.njtoyo.taxi.admin.rest.wrapper.business.customer.ReasonWrapper;
import com.njtoyo.taxi.admin.rest.wrapper.business.customer.logout.IndexQueryWrapper;
import com.taxi.entity.common.RestResult;
import com.njtoyo.taxi.entity.backend.AdminUser;
import org.springframework.web.bind.annotation.PathVariable;

public interface CustomerLogoutService {
    RestResult<IPage<CustomerLogoutListPresenter>> getAllPage(IndexQueryWrapper listWrapper);

    RestResult agree(AdminUser adminUser, @PathVariable("id") Long id);

    RestResult reject(AdminUser adminUser, @PathVariable("id") Long id);

    /**
     * 填写注销原因
     *
     * @param id
     * @return
     */
    RestResult reason(@PathVariable("id") Long id, ReasonWrapper wrapper);
}
